Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 20 - QuickDraw 3D Mathematical Utilities / QuickDraw 3D Mathematical Utilities Reference
QuickDraw 3D Mathematical Utilities / Setting Up Transformation Matrices


Q3Matrix4x4_SetScale

You can use the Q3Matrix4x4_SetScale function to configure a 4-by-4 scaling transformation matrix.

TQ3Matrix4x4 *Q3Matrix4x4_SetScale (
TQ3Matrix4x4 *matrix4x4, 
float xScale, 
float yScale, 
float zScale);
matrix4x4
A 4-by-4 matrix.
xScale
The desired amount of scaling along the x coordinate axis.
yScale
The desired amount of scaling along the y coordinate axis.
zScale
The desired amount of scaling along the z coordinate axis.
DESCRIPTION
The Q3Matrix4x4_SetScale function returns, as its function result and in the matrix4x4 parameter, a scaling matrix that scales an object by the amount xScale along the x coordinate axis, by the amount yScale along the y coordinate axis, and by the amount zScale along the z coordinate axis.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996